package org.example.erat.model.export;

public class ExportStrategyFactory {
    public static ExportStrategy createStrategy(String format) {
        return switch (format.toLowerCase()) {
            case "excel" -> new ExcelExportStrategy();
            case "csv" -> new CsvExportStrategy();
            default -> throw new IllegalArgumentException("不支持的导出格式: " + format);
        };
    }
}    